/*
 * httphandle.cpp
 *
 *  Created on: Apr 17, 2009
 *      Author: kuncai
 */
#include "httphandle.h"
HttpHandle::HttpHandle(){
	successor = NULL;
	error = NULL;
}

HttpHandle::~HttpHandle(){
	if(successor != NULL)
		delete successor;
	if(error != NULL)
		delete error;
}

void HttpHandle::SetSuccessor(HttpHandle* httpHandle){
	successor = httpHandle;
}

void HttpHandle::SetError(HttpHandle* httpHandle){
	error = httpHandle;
}

void HttpHandle::HandleRequest(HttpRequest* httpRequest, HttpResponse* httpResponse){
	ProcessRequest( httpRequest,  httpResponse);
}
